org.springframework.core.enums

Class StringCodedLabeledEnum

    • Constructor Summary

      Constructors 
      Constructor and Description
      StringCodedLabeledEnum(java.lang.String code, java.lang.String label)
      Deprecated. 
      Create a new StringCodedLabeledEnum instance.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Comparable getCode()
      Deprecated. 
      Return this enumeration's code.
      java.lang.String getStringCode()
      Deprecated. 
      Return the String code of this LabeledEnum instance.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • code

        private final java.lang.String code
        Deprecated. 
        The unique code of this enum.
    • Constructor Detail

      • StringCodedLabeledEnum

        public StringCodedLabeledEnum(java.lang.String code,
                              java.lang.String label)
        Deprecated. 
        Create a new StringCodedLabeledEnum instance.
        Parameters:
        code - the String code
        label - the label (can be null)
    • Method Detail

      • getCode

        public java.lang.Comparable getCode()
        Deprecated. 
        Description copied from interface: LabeledEnum
        Return this enumeration's code.

        Each code should be unique within enumerations of the same type.

      • getStringCode

        public java.lang.String getStringCode()
        Deprecated. 
        Return the String code of this LabeledEnum instance.